<?php
/**
 * Created by PhpStorm.
 * User: bevan
 * Date: 2018/1/6
 * Time: 下午3:51
 */

namespace app\admin\validate;
use think\Validate;

class GroupValidate extends Validate
{
    protected $rule = [
        'title' => 'require|min:2|max:16',
        'status' => 'require',
        'rules' => 'require',
    ];
    protected $message = [
        'title.require' => '权限组名必须',
        'title.min' => '权限组名称长度在2-16位之间',
        'title.max' => '权限组名称长度在2-16位之间',
        'status.require' => '权限组状态必须',
        'rules.require' => '权限组规则必须',
    ];
}